#include "TcpData.h"

namespace mpgl_engine{	namespace application{ namespace net {

	TcpData::TcpData(ushort bufferMax)
		: Event(), m_state(TcpDataState::EMPTY), 
		m_bufferLength(bufferMax), m_bufferIndex(0)
	{
		m_dataBuffer = new char[m_bufferLength];
		for (ushort i = 0; i < m_bufferLength; i++)
			m_dataBuffer[i] = '\0';
	}

	

}}}